import request from '@/plugin/axios'
import { sysPath } from '@api/sys.common'

export function getRepositoryListByPage(params){ 
    return request({
        url: sysPath + '/hx-mart/api/v1/repository/repositoryInfo/findAllListByPage',
        method: 'post',
        params
    })
}
//查询仓库信息
export function findRepositoryById(params) {
    return request({
        url: sysPath + '/hx-mart/api/v1/repository/repositoryInfo/findRepositoryById',
        method: 'post',
        params
    })
} 
export function enableRepositoryInfo(params) {
    return request({
        url: sysPath + '/hx-mart/api/v1/repository/repositoryInfo/enableRepositoryInfo',
        method: 'post',
        params
    })
}
export function unenableRepositoryInfo(params) {
    return request({
        url: sysPath + '/hx-mart/api/v1/repository/repositoryInfo/unenableRepositoryInfo',
        method: 'post',
        params
    })
}
//删除仓库信息
export function deleteRepositoryInfo(params) {
    return request({
        url: sysPath + '/hx-mart/api/v1/repository/repositoryInfo/deleteRepositoryInfo',
        method: 'post',
        params
    })
}
//获取可绑定上级仓库列表
export function findRepositoryInfoNotCurrent(params) {
    return request({
        url: sysPath + '/hx-mart/api/v1/repository/repositoryInfo/findRepositoryInfoNotCurrent',
        method: 'post',
        params
    })
}
//新增保存仓库信息
export function addSaveRepository(params) {
    return request({
        url: sysPath + '/hx-mart/api/v1/repository/repositoryInfo/addSaveRepository',
        method: 'post',
        data: params
    })
}
//编辑保存仓库信息
export function editSaveRepository(params) {
    return request({
        url: sysPath + '/hx-mart/api/v1/repository/repositoryInfo/editSaveRepository',
        method: 'post',
        data: params
    })
}
//获取所有仓库列表
export function findAllList() {
    return request({
        url: sysPath + '/hx-mart/api/v1/repository/repositoryInfo/findAllList',
        method: 'post'
    })
}
//获取启用中的仓库列表
export function findAllListEnable(params) {
    return request({
        url: sysPath + '/hx-mart/api/v1/repository/repositoryInfo/findAllListEnable',
        method: 'post',
        params
    })
}




